/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package stateful;

import entities.Conversation;
import java.io.PrintWriter;
import java.util.List;
import javax.ejb.Local;
import entities.User;

/**
 *
 * @author oana.leva
 */
@Local
public interface ChatSessionLocal {

    public void UpdateUserInfo(String newPwd, String newDescription);

    public void LogUserOut();

    public boolean SignUserUp(String name, String pwd, String description);

    public boolean LogUserIn(String name, String pwd);

    public List<User> GetLoggedInUsers();

    boolean IsLoggedIn();

    boolean PostMessage(int conversationId, String payLoad);

    void PrintMessages(int conversationId, PrintWriter out);

    Conversation StartConversationWithUser(User otherUsr);


}
